package com.wksc.framework.impexp.bean;

import java.io.Serializable;

/**
 * <p> Title(文件名): BaseFormatParams.java </p>
 * <p> Description(描述): 用于格式化中Pattern的参数,其中包含待格式化的对象,权限等信息 </p>
 * <p> Copyright(版权): Copyright (c) 2011 </p>
 * <p> Company(公司): 成都四方信息技术有限公司 </p>
 * <p> CreateTime(生成日期)：2011-11-29 上午11:39:00 </p>
 * @author wanglei
 * @version impExp_C13_P
 */
public class BaseFormatParams implements Serializable {
	private static final long serialVersionUID = 6211469308035643674L;

	//待格式化的单元格对象
    private Object cellContent;
    
    //待格式化的单元格所在行整行的数据内容
    private Object[] lineContent;

    //是否具有解密权限
    private boolean decipherRights;

    //是否具有查看消息内容的权限
    private boolean showContentRights;
    
    //短消息内容清理及屏蔽开关是否开启 0=关闭, 1=开启 
    private int msgClearIsActive;
    
    //短消息加密开关是否开启 0=关闭, 1=开启
    private int msgEncryptIsActive;
    
    //功能类型, 用于加密解密消息内容
	private int type;
	
	//短消息类型,用于加密解密消息内容
	private int smTypeIndex = -1;
	
	//名单类型,用于加密解密消息内容
	private int listTypeIndex = -1;

	//超标时间,用于加密解密消息内容
	private int outLawDateIndex = -1;
	
	//需要解密的列的索引,默认为 -1不解密,索引从0开始
	private int decipheringColIndex = -1;
    
    public BaseFormatParams() {
    }

    public BaseFormatParams(boolean decipherRights, boolean showContentRights) {
        this.decipherRights = decipherRights;
        this.showContentRights = showContentRights;
    }
    
    public Object getCellContent() {
    	if(null == cellContent){
    		return "";
    	}
        return cellContent;
    }

    public void setCellContent(Object cellContent) {
        this.cellContent = cellContent;
    }

    public boolean isDecipherRights() {
        return decipherRights;
    }

    public void setDecipherRights(boolean decipherRights) {
        this.decipherRights = decipherRights;
    }

    public boolean isShowContentRights() {
        return showContentRights;
    }

    public void setShowContentRights(boolean showContentRights) {
        this.showContentRights = showContentRights;
    }

	/**
	 * 
	 * @return msgClearIsActive 短消息内容清理及屏蔽开关是否开启<br>
	 *         0=关闭<br>
	 *         1=开启
	 */
	public int getMsgClearIsActive() {
		return msgClearIsActive;
	}
	/**
	 * 
	 * 
	 * @param msgClearIsActive
	 *            短消息内容清理及屏蔽开关是否开启<br>
	 *            0=关闭<br>
	 *            1=开启
	 */
	public void setMsgClearIsActive(int msgClearIsActive) {
		this.msgClearIsActive = msgClearIsActive;
	}

	/**
	 * 
	 * 
	 * @return msgEncryptIsActive 短消息加密开关是否开启<br>
	 *         0=关闭<br>
	 *         1=开启
	 */
	public int getMsgEncryptIsActive() {
		return msgEncryptIsActive;
	}
	/**
	 * 
	 * 
	 * @param msgEncryptIsActive
	 *            短消息加密开关是否开启<br>
	 *            0=关闭<br>
	 *            1=开启
	 */
	public void setMsgEncryptIsActive(int msgEncryptIsActive) {
		this.msgEncryptIsActive = msgEncryptIsActive;
	}

	/**
	 * 
	 * 
	 * @return type 功能类型, 用于加密解密消息内容
	 */
	public int getType() {
		return type;
	}
	/**
	 * 
	 * 
	 * @param type
	 *            功能类型, 用于加密解密消息内容
	 */
	public void setType(int type) {
		this.type = type;
	}
	
	/**
	 * 
	 * 
	 * @return smTypeIndex 短消息类型,用于加密解密消息内容
	 */
	public int getSmTypeIndex() {
		return smTypeIndex;
	}
	/**
	 * 
	 * 
	 * @param smTypeIndex
	 *            短消息类型,用于加密解密消息内容
	 */
	public void setSmTypeIndex(int smTypeIndex) {
		this.smTypeIndex = smTypeIndex;
	}
	
	/**
	 * 
	 * 
	 * @return listTypeIndex 名单类型,用于加密解密消息内容
	 */
	public int getListTypeIndex() {
		return listTypeIndex;
	}
	/**
	 * 
	 * 
	 * @param listTypeIndex
	 *            名单类型,用于加密解密消息内容
	 */
	public void setListTypeIndex(int listTypeIndex) {
		this.listTypeIndex = listTypeIndex;
	}

	/**
	 * 
	 * 
	 * @return outLawDateIndex 超标时间,用于加密解密消息内容
	 */
	public int getOutLawDateIndex() {
		return outLawDateIndex;
	}
	/**
	 * 
	 * 
	 * @param outLawDateIndex
	 *            超标时间,用于加密解密消息内容
	 */
	public void setOutLawDateIndex(int outLawDateIndex) {
		this.outLawDateIndex = outLawDateIndex;
	}
	
	/**
	 * 
	 * 
	 * @return decipheringColIndex 需要解密的列的索引,默认为 -1不解密,索引从0开始
	 */
	public int getDecipheringColIndex() {
		return decipheringColIndex;
	}
	/**
	 * 
	 * 
	 * @param decipheringColIndex
	 *            需要解密的列的索引,默认为 -1不解密,索引从0开始
	 */
	public void setDecipheringColIndex(int decipheringColIndex) {
		this.decipheringColIndex = decipheringColIndex;
	}

	public Object[] getLineContent() {
		return lineContent;
	}

	public void setLineContent(Object[] lineContent) {
		this.lineContent = lineContent;
	}
}
